More...
Go to the source code of this file.
|
|
typedef int | mrb_mt_foreach_func(mrb_state *, mrb_sym, mrb_method_t, void *) |
|
typedef struct mrb_mt_entry | mrb_mt_entry |
|
typedef struct mrb_mt_tbl | mrb_mt_tbl |
|
|
static struct RClass * | mrb_class (mrb_state *mrb, mrb_value v) |
|
void | mrb_define_method_raw (mrb_state *, struct RClass *, mrb_sym, mrb_method_t) |
|
void | mrb_alias_method (mrb_state *, struct RClass *c, mrb_sym a, mrb_sym b) |
|
void | mrb_remove_method (mrb_state *mrb, struct RClass *c, mrb_sym sym) |
|
mrb_method_t | mrb_method_search_vm (mrb_state *, struct RClass **, mrb_sym) |
|
mrb_method_t | mrb_method_search (mrb_state *, struct RClass *, mrb_sym) |
|
struct RClass * | mrb_class_real (struct RClass *cl) |
|
struct RClass * | mrb_class_outer (mrb_state *mrb, struct RClass *c) |
|
void | mrb_mc_clear_by_class (mrb_state *mrb, struct RClass *c) |
|
void | mrb_mt_foreach (mrb_state *, struct RClass *, mrb_mt_foreach_func *, void *) |
|
void | mrb_mt_init_rom (mrb_state *mrb, struct RClass *c, const mrb_mt_entry *entries, int size) |
See Copyright Notice in mruby.h
◆ MRB_CLASS_ORIGIN
| #define MRB_CLASS_ORIGIN |
( |
| c | ) |
|
Value: do {\
if ((c)->flags & MRB_FL_CLASS_IS_PREPENDED) {\
(c) = (c)->super;\
while (!((c)->flags & MRB_FL_CLASS_IS_ORIGIN)) {\
(c) = (c)->super;\
}\
}\
} while (0)
◆ mrb_class_ptr
| #define mrb_class_ptr |
( |
| v | ) |
|
Value:((
struct RClass*)(mrb_ptr(v)))
Class class.
Definition class.h:17
◆ MRB_DEFINE_ALLOCATOR
| #define MRB_DEFINE_ALLOCATOR |
( |
| c | ) |
|
Value:((c)->flags &= ~MRB_FL_UNDEF_ALLOCATE)
◆ MRB_INSTANCE_TT
| #define MRB_INSTANCE_TT |
( |
| c | ) |
|
Value:(enum mrb_vtype)((c)->flags & MRB_INSTANCE_TT_MASK)
◆ MRB_MT_ASPEC
| #define MRB_MT_ASPEC |
( |
| flags | ) |
|
Value:
Specifies the number of arguments a function takes.
◆ MRB_MT_ENTRY
| #define MRB_MT_ENTRY |
( |
| fn, |
|
|
| sym, |
|
|
| flags ) |
Value:{ { (fn) }, (sym), (flags) | MRB_MT_FUNC }
◆ MRB_MT_INIT_ROM
| #define MRB_MT_INIT_ROM |
( |
| mrb, |
|
|
| cls, |
|
|
| entries ) |
Value:mrb_mt_init_rom(mrb, cls, entries, \
(int)(sizeof(entries)/sizeof(entries[0])))
◆ MRB_MT_REMOVED_P
| #define MRB_MT_REMOVED_P |
( |
| e | ) |
|
Value:(((e).flags&MRB_MT_FUNC) && (e).val.func==NULL)
◆ MRB_SET_INSTANCE_TT
| #define MRB_SET_INSTANCE_TT |
( |
| c, |
|
|
| tt ) |
Value:((c)->flags = (((c)->flags & ~MRB_INSTANCE_TT_MASK) | (char)(tt)))
◆ MRB_UNDEF_ALLOCATOR
| #define MRB_UNDEF_ALLOCATOR |
( |
| c | ) |
|
Value:(mrb_assert((c)->tt == MRB_TT_CLASS), (c)->flags |= MRB_FL_UNDEF_ALLOCATE)
◆ MRB_UNDEF_ALLOCATOR_P
| #define MRB_UNDEF_ALLOCATOR_P |
( |
| c | ) |
|
Value:((c)->flags & MRB_FL_UNDEF_ALLOCATE)